package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Bargain;
import com.dao.BargainMapper;
import com.dao.ClientMapper;
import com.service.BargainService;


@Service
public class BargainServiceImp implements BargainService{

	@Autowired
    private BargainMapper dao;
	
	
	public void insert(Bargain bean) {
		dao.insert(bean);	
	}


	public Bargain selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(id);
	}


	public Bargain selectBymaketingid(Integer maketingid) {
		// TODO Auto-generated method stub
		return dao.selectBymaketingid(maketingid);
	}


	public List<Bargain> selectAll() {
		// TODO Auto-generated method stub
		return dao.selectAll();
	}


	public List<Bargain> selectAllByUserid(Integer userid) {
		// TODO Auto-generated method stub
		return dao.selectAllByUserid(userid);
	}


	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(id);
	}


	public List<Bargain> selectAllcnameuname(Map map) {
		// TODO Auto-generated method stub
		return dao.selectAllcnameuname(map);
	}


	public List<Bargain> selectAllByUseridcnameuname(Map map) {
		// TODO Auto-generated method stub
		return dao.selectAllByUseridcnameuname(map);
	}


	public Bargain selectByPrimaryKeyduo(Integer id) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKeyduo(id);
	}

}
